import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import QiaoNan from 'qiaonan'
// import 'qiaonan/css/style.css'
import HTTP from './Api'
import previewImage from './tools/previewImage'
// 表情
// import EmojiPick from 'vue-qqemoji-picker';
// Vue.use(EmojiPick);

Vue.config.productionTip = false
Vue.use(ElementUI, {
    size: "small"
})
Vue.use(QiaoNan);
Vue.prototype.$http = HTTP;

Vue.prototype.$preview = {
    show:previewImage
}

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
const is_production =  process.env.NODE_ENV == 'bformal' || process.env.NODE_ENV == 'btest' || process.env.NODE_ENV == 'blocal';
// 重写log，生产环境不打印
function rewirteLog() {
    console.log = (function (log) {
        return is_production ? function () { } : log
    }(console.log));
}
// 运行次重写方法
rewirteLog();
